MountControlCommand

class MountControlCommand(tiltAngle: Double, yaw: Double, mode: MountControlCommand.Mode = Mode.TARGETING, frame: MavlinkCommand.Frame = Frame.COMMAND) : MavlinkCommand

MAVLink command which allows to control the camera tilt.

Only tilt and yaw are supported by Anafi.

Parameters

tiltAngle

the tilt angle value, in degrees.

yaw

the yaw angle value, in degrees. Yaw is interpreted as relative to the drone's orientation.

mode

the mount mode. Only Mode.TARGETING and Mode.NEUTRAL are supported. When Mode.NEUTRAL is used all other parameters are ignored and the gimbal resets to its default position.

frame

the reference frame of the coordinates.

Constructors

Link copied to clipboard
constructor(tiltAngle: Double, yaw: Double, mode: MountControlCommand.Mode = Mode.TARGETING, frame: MavlinkCommand.Frame = Frame.COMMAND)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

The mount control mode.

Properties

Link copied to clipboard
Link copied to clipboard

The coordinate frame; set to global coordinate frame or relative altitude over ground.

Link copied to clipboard
Link copied to clipboard

the raw parameters of the command

Link copied to clipboard

The MAVLink command type

Link copied to clipboard

Tilt angle value, in degrees.

Link copied to clipboard
val yaw: Double

Yaw angle value, in degrees. Yaw is interpreted as relative to the drone's orientation.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun write(writer: Writer, index: Int, frame: MavlinkCommand.Frame)

Writes the MAVLink command to the given writer.